{
"api": "post:/api/${tableInfo.name}/list",
"autoFillHeight": true,
"bulkActions": [
{
"actionType": "ajax",
"api": "delete:/api/${tableInfo.name}/batchDelete/${r'${ids}'}",
"confirmText": "确定要批量删除?",
"label": "批量删除"
}
],
"canAccessSuperData": false,
"columns": [
<#list tableInfo.fields as field>
    {
    "label": "${field.comment}",
    "name": "${field.propertyName}"
    }<#if field_has_next>,</#if>
</#list>
],
"filter": {
"actions": [
{
"label": "查询",
"level": "primary",
"type": "submit"
},
{
"label": "清空",
"level": "secondary",
"type": "reset"
},
{
"actionType": "dialog",
"dialog": {
"body": {
"api": "post:/api/${tableInfo.name}/add",
"body": [
<#list tableInfo.fields as field>
    {
    "type": "input-text",
    "label": "${field.comment}",
    "name": "${field.propertyName}",
    "required": true
    }<#if field_has_next>,</#if>
</#list>
],
"reload": "mycrud",
"type": "form"
},
"title": "新增${tableInfo.comment}"
},
"icon": "fa fa-plus",
"label": "新增",
"level": "danger",
"type": "button"
}
],
"body": [
{
"body": [
<#list tableInfo.fields as field>
    {
    "type": "input-text",
    "label": "${field.comment}",
    "name": "${field.propertyName}",
    "required": true
    }<#if field_has_next>,</#if>
</#list>
],
"type": "group"
}
],
"debug": false,
"title": ""
},
"filterTogglable": true,
"footerToolbar": [
"statistics",
{
"layout": "perPage,pager,go",
"type": "pagination"
}
],
"headerToolbar": [
"bulkActions",
{
"align": "right",
"draggable": true,
"footerBtnSize": "sm",
"icon": "fas fa-cog",
"overlay": true,
"type": "columns-toggler"
},
{
"align": "right",
"label": "当前页导出",
"type": "export-excel"
},
"filter-toggler"
],
"itemActions": [
{
"actionType": "dialog",
"dialog": {
"body": {
"body": [
<#list tableInfo.fields as field>
    {
    "type": "static-text",
    "label": "${field.comment}",
    "name": "${field.propertyName}"
    }<#if field_has_next>,</#if>
</#list>
],
"static": true,
"type": "form"
},
"title": "${tableInfo.comment}详情"
},
"label": "浏览",
"type": "button"
},
{
"actionType": "dialog",
"dialog": {
"body": {
"api": "post:/api/${tableInfo.name}/save",
"body": [
<#list tableInfo.fields as field>
    {
    "type": "input-text",
    "label": "${field.comment}",
    "name": "${field.propertyName}",
    "required": true
    }<#if field_has_next>,
    {
    "type": "divider"
    },</#if>
</#list>
],
"name": "my_edit_form",
"type": "form"
},
"title": "编辑${tableInfo.comment}"
},
"label": "编辑",
"type": "button"
},
{
"actionType": "ajax",
"api": "delete:/api/${tableInfo.name}/delete/${r'$'}${primaryField}",
"confirmText": "您确认要删除?",
"label": "删除",
"type": "button"
}
],
"keepItemSelectionOnPageChange": true,
"labelTpl": "${r'$'}${primaryField}",
"name": "mycrud",
"perPage": 10,
"primaryField": "${primaryField}",
"syncLocation": false,
"type": "crud"
}